package com.ruoyi.oper.service.impl;

import com.ruoyi.oper.domain.OperCart;
import com.ruoyi.oper.mapper.OperCartMapper;
import com.ruoyi.oper.service.IOperCartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OperCartServiceImpl implements IOperCartService {
    @Autowired
    private OperCartMapper operCartMapper;
    @Override
    public List<OperCart> selectOperCartList(OperCart operCart) {
        return operCartMapper.selectOperCartList(operCart);
    }

    @Override
    public OperCart selectOperCartById(Integer id) {
        return operCartMapper.selectOperCartById(id);
    }

    @Override
    public int deleteOperCartById(Integer id) {
        return operCartMapper.deleteOperCartById(id);
    }

    @Override
    public int deleteOperCartByIds(Long[] ids) {
        return operCartMapper.deleteOperCartByIds(ids);
    }

    @Override
    public int updateOperCart(OperCart operCart) {
        return operCartMapper.updateOperCart(operCart);
    }

    @Override
    public int insertOperCart(OperCart operCart) {
        return operCartMapper.insertOperCart(operCart);
    }
}
